package com.yuncheng.oaApi.constant;



import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

/**
 * 审评查验-静态变量
 */
public class OaSpcyConstant {
    // 系统名称
    public final static String System_Name = "审评查验信息一体化智慧管理系统";
    public final static String System_Url = "https://bg.yjj.gxzf.gov.cn/gxfdei"; // 系统域名

    // 培训来源
    public final static String Px_Pxly_Nb = "内部培训";
    public final static String Px_Pxly_Wb = "外部培训";

    // 文件记录
    public final static String WJJL_FILE_BASE_URL = "wjjl";

    // 用户变更申请
    public final static String USER_BGSQ_WJJL_FILE_BASE_URL = "userbgsq";

    // 党建-学习资料
    public final static String PARTY_XXZL_WJJL_FILE_BASE_URL = "partyxxzl";

    // 用户签名
    public final static String USERQM_FILE_BASE_URL = "userqm";

    // 用户照片
    public final static String USER_PHOTO_FILE_BASE_URL = "userPhoto";

    // 检查员证件
    public final static String USER_JCY_ZJ_FILE_BASE_URL = "userJcyZj";

    // 检查员年度考评计划
    public final static String JCY_NDKP_JH_FILE_BASE_URL = "ndkpjh";

    // 检查员遴选计划
    public final static String JCY_LXJH_FILE_BASE_URL = "jcyLxjh";

    // 检查员聘任登记
    public final static String JCY_PRDJ_FILE_BASE_URL = "jcyprdj";

    // 检查员解聘登记
    public final static String JCY_JPDJ_FILE_BASE_URL = "jcyjpdj";

    // 检查员退休延聘解聘申请
    public final static String JCY_YPJPSQ_FILE_BASE_URL = "jcyypjpsq";

    // 检查员遴选登记表
    public final static String JCY_LXDJB_FILE_BASE_URL = "jcylxdjb";

    // 申请事项-签名
    public final static String SQSX_HYQM_FILE_BASE_URL = "sqsxHyQm";

    // 党务会议
    public final static String PARTY_HY_FILE_BASE_URL = "partyHy";

    // ueditor富文本文件存放目录
    public final static String UEDITOR_FILE_BASE_URL = "ueditor";

    // 检查员重新登记登记表
//    public final static String JCY_JCYCXDJDJB_FILE_BASE_URL = "jcydjb";

    // 文件模板
    public final static String WJMB_FILE_BASE_URL = "wjmb";

    // 培训记录
    public final static String Px_File_Base_Url = "userPxjl"; // 培训记录-相对路径base目录

    // 公告文件
//    public final static String Notice_File_Base_Url = "notice";

    // 质量体系文件
    public final static String Zltxwj_File_Base_Url = "zltxwj"; // 质量体系文件-相对路径base目录
    public final static String Flow_Zltxwj_File_Base_Url = "flowZltxwj"; // (流程)质量体系文件-相对路径base目录
    public final static String Old_Zltxwj_File_Base_Url = "oldZltxwj"; // （旧的）质量体系文件-相对路径base目录

    // 企业文件
    public final static String QY_Wjjl_File_Base_Url = "qywj"; // 企业文件-相对路径base目录

    // 档案文件
    public final static String DA_Wjjl_File_Base_Url = "dawjjl"; // 企业文件-相对路径base目录

    // 临时文件-子目录 - 父目录 为 配置文件里面的参数 - file.path
    public final static String TEMP_WJJL_CHILD_URL = "temp";

    // 质量体系文件
    public final static String Zltxwj_Zt_Yx = "现行有效"; // 默认
    public final static String Zltxwj_Zt_Wx = "无效";
    public final static String Zltxwj_Xdlx_Xd = "修订"; // 默认
    public final static String Zltxwj_Xdlx_Xz = "新增"; // 默认
    public final static String Zltxwj_Xdlx_SX = "作废"; // 默认：失效/作废

    // 部门Code
    // 管理员 A01A01
    public final static String Org_Code_Admin = "A01A01";
    // 质量管理与科研科 A02A10
    // 办公室 A02A09
    // 注册 A02A01
    // 生产 A02A03
    // 器械 A02A04
    // 流通 A02A02
    // 化妆品 A02A05

    // 审评类型
    public final static String Sp_type_Ns = "内审";

    // 发送短信记录
    public final static String SMS_FSZT_ALL = "全部";
    public final static String SMS_FSZT_WFS = "未发送";
    public final static String SMS_FSZT_YFS = "已发送";

    // 预备检查员 评级
    public final static String YBJCY_PJ_BHG = "不合格";

    // 培训基本信息 - 答卷是否发放状态
    public final static String PX_DJFFZT_YES = "是";
    public final static String PX_DJFFZT_NO = "否";


    // 核查员推荐记录
    public final static String SFRX_YES = "是";
    public final static String TJZG_YPGMPJCY = "药品GMP检查员"; // 001001
    public final static String TJZG_YPGCPJCY = "药品GCP检查员"; // 001002
    public final static String TJZG_YPZCXCJCY = "药品注册现场检查员"; // 001002
    public final static String TJZG_GSPYPLLSQYJCY = "GSP药品零售企业检查员"; // 001003
    public final static String TJZG_GSPYPPFQYJCY = "GSP药品批发企业检查员"; // 001003
    public final static String TJZG_YLQXJCY = "医疗器械检查员"; // 002
    public final static String TJZG_HZPJCY = "化妆品检查员"; // 003

    /*public static String getYwflCodeByJcyZg(String ftjzg){
        if (ftjzg.equals(SpcyConstant.TJZG_YPGMPJCY)){
            return SpcyConstant.YWFL_CODE_YPSC;

        }else if (ftjzg.equals(SpcyConstant.TJZG_YPGCPJCY)){
            return SpcyConstant.YWFL_CODE_YPZC;
        }else if (ftjzg.equals(SpcyConstant.TJZG_YPZCXCJCY)){
            return SpcyConstant.YWFL_CODE_YPZC;

        }else if (ftjzg.equals(SpcyConstant.TJZG_GSPYPLLSQYJCY)){
            return SpcyConstant.YWFL_CODE_YPJY;

        }else if (ftjzg.equals(SpcyConstant.TJZG_GSPYPPFQYJCY)){
            return SpcyConstant.YWFL_CODE_YPJY;

        }else if (ftjzg.equals(SpcyConstant.TJZG_YLQXJCY)){
            return SpcyConstant.YWFL_CODE_YLQX;

        }else if (ftjzg.equals(SpcyConstant.TJZG_HZPJCY)){
            return SpcyConstant.YWFL_CODE_HZP;
        }else {
            return "";
        }
    }*/

    // 核查员-序列类型
    public final static String XLLX_YP = "药品";
    public final static String XLLX_YLQX = "医疗器械";
    public final static String XLLX_HZP = "化妆品";

    // 根据检查员类别获取检查员序列类型
    public static String getJcyXllxByJcylb(String jcylb){
        if (StringUtils.isBlank(jcylb)){
            return "";
        }
        if (jcylb.contains(XLLX_YLQX)){
            return XLLX_YLQX;
        }else if (jcylb.contains(XLLX_HZP)){
            return XLLX_HZP;
        }else {
            return XLLX_YP;
        }
    }

    // 核查员- 类型
    public final static String HCY_LX_YPSC = "药品生产检查员";
    public final static String HCY_LX_YPLT = "药品流通检查员";
    /*public final static String HCY_LX_YPZCLC = "药物临床检查员";
    public final static String HCY_LX_YPZCFLC = "药物非临床检查员";
    public final static String HCY_LX_YLQXLC = "医疗器械临床检查员";
    public final static String HCY_LX_YLQXSC = "医疗器械生产检查员";
    public final static String HCY_LX_YLQXLT = "医疗器械流通检查员";
    public final static String HCY_LX_HZPYZ = "化妆品研制检查员";
    public final static String HCY_LX_HZPSC = "化妆品生产检查员";
    public final static String HCY_LX_HZPLT = "化妆品流通检查员";*/

    // 核查员 - 评审员
//    public final static String YWFL_CODE_PSY = "psy123";

    // 检查结果 - 等级
    public final static String JCJG_FH = "符合";
//    public final static String JCJG_JBFH = "基本符合";
//    public final static String JCJG_BFH = "不符合";


    // 业务字段模版 - 对于类型
    public final static String YWZDXX_JL = "结论";
    public final static String YWZDXX_JL_REPLACE = "${data.fcyjl}"; // 审查结论
    public final static String YWZDXX_CYJCYJ_REPLACE = "${data.fcyjcyj}"; // 检查依据
    public final static String YWZDXX_CYJCFW_REPLACE = "${data.fcyjcfw}"; // 检查范围
    public final static String YWZDXX_CYJG_REPLACE = "${data.fcyjg}"; // 审查结果

    public final static String YWZDXX_ZHJL = "综合结论";
    public final static String YWZDXX_FXQXQK_REPLACE = "${data.fxqxqk}"; // 发现缺陷情况
    public final static String YWZDXX_CYYBQX_REPLACE = "${data.fcyybqx}"; // 一般缺陷
    public final static String YWZDXX_CYZYQX_REPLACE = "${data.fcyzyqx}"; // 主要缺陷
    public final static String YWZDXX_CYYZQX_REPLACE = "${data.fcyyzqx}"; // 严重缺陷
    public final static String YWZDXX_CPMC_REPLACE = "${data.fcpmc}"; // 产品
    public final static String YWZDXX_ZHJG_REPLACE = "${data.fzhjg}"; // 综合结果
    public final static String YWZDXX_CYGCYBM_REPLACE = "${data.fcygcybm}"; // 观察员部门

    // 核查员 - 是否药检所人员
    public final static String HCY_SFYJSRY_YES = "是";
    public final static String HCY_SFYJSRY_NO = "否";
    public final static String USER_DWLX = "检验机构";

    // 年度考评
    public final static String NDKP_SFTJKP_YES = "是";
    public final static String NDKP_SFCYKP_YES = "是";

    // 文件记录-邮箱发送状态
    public final static String WJJL_ZT_YX = "是";
    public final static String WJJL_ZT_YX_NO = "否";

    // 文件记录-短信发送状态
    public final static String WJJL_ZT_DX = "是";
    public final static String WJJL_ZT_DX_NO = "否";

    // 文件记录-盖章状态
    public final static String WJJL_ZT_GZ = "是";
    public final static String WJJL_ZT_GZ_NO = "否";

    // 审评查验-预报名状态
    public final static String SPCY_YBM_ZT_YX = "有效";

    // 审评查验-预报名状态
    public final static String SPCY_YBM_ZT_YZZ = "已失效";

    // 审评查验-报名状态
    public final static String SPCY_BM_ZT_YX = "有效";

    // 审评查验-报名状态
    public final static String SPCY_BM_ZT_QX = "已失效";

    // 审评查验-预报名是否选中-是
    public final static String SPCY_YBM_XZ_ZT_S = "是";

    // 审评查验-预报名是否选中-否
    public final static String SPCY_YBM_XZ_ZT_F = "否";

    // 日常考评-评价等级
    public final static String XPJl_PJ_YX = "优秀";
    public final static String XPJl_PJ_BHG = "不合格";
    public final static String XPJl_PJ_HG = "合格";

    // 审查缺陷项目-审查结论-无缺陷
    public final static String REVIEW_RECORD_CONCLUSION_WQX = "无缺陷";

    // 审查缺陷项目-审查结论-一般缺陷
    public final static String REVIEW_RECORD_CONCLUSION_YBQX = "一般缺陷";

    // 审查缺陷项目-审查结论-主要缺陷
    public final static String REVIEW_RECORD_CONCLUSION_ZYQX = "主要缺陷";

    // 审查缺陷项目-审查结论-严重缺陷
    public final static String REVIEW_RECORD_CONCLUSION_YZQX = "严重缺陷";

    // 审查缺陷项目-审查结论-符合"
    public final static String REVIEW_RECORD_CONCLUSION_FH = "符合";

    // 审查缺陷项目-审查结论-化妆品
    public final static String REVIEW_RECORD_CONCLUSION_FHGD = "符合规定";
    public final static String REVIEW_RECORD_CONCLUSION_XC = "瑕疵";
    public final static String REVIEW_RECORD_CONCLUSION_BFHGD = "不符合规定";
    public final static String JCXM_TYPE3_SJSC = "实际生产";
    public final static String JCXM_TYPE3_WTSC = "委托生产";

    // 化妆品-审查结果
    public final static String HZP_JCXM_SCJG_XCHCTG = "现场核查通过";
    public final static String HZP_JCXM_SCJG_XCHCBTG = "现场核查不通过";
    public final static String HZP_JCXM_SCJG_ZGHFC = "整改后复查";


    // 审查缺陷项目-审查结论-基本符合"
    public final static String REVIEW_RECORD_CONCLUSION_JBFH = "基本符合";

    // 审查缺陷项目-审查结论-不符合
    public final static String REVIEW_RECORD_CONCLUSION_BFH = "不符合";

    // 岗位名称
    public final static String ROLE_NAME_KZ = "科室负责人";
    public final static String ROLE_NAME_ZXLD = "中心领导";
    public final static String ROLE_NAME_JBR = "经办人";
    public final static String ROLE_NAME_BMZG = "部门主管";

    // 签名
    public final static String USER_SIGNATURE = "签名";

    // 盖章
    public final static String FILE_GAIZHANG = "盖章";

    // 短信
    public final static String FILE_TYPE_SMS = "短信";

    // 邮箱
    public final static String FILE__TYPE_MAIL = "邮箱";

    // 不可删
    public final static String FILE_NOT_DELETE = "不可删除";

    // 加班
    public final static String JJRK_LX_JB = "加班";

    public final static String JJRK_LX_TX = "调休"; // 调休

    // 中心材料
    public final static String TYPE_SPCY_CORE_MATERIAL = "中心材料";

    // 文件类型docx
    public final static String PRINT_FILE_TYPE_DOCX = ".docx";

    // 文件类型doc
    public final static String PRINT_FILE_TYPE_DOC = ".doc";

    /** 选派类型 */
    public final static String FLOW_TYPE_CY = "查验"; // 查验
    public final static String FLOW_TYPE_SP = "审评"; // 审评
    public final static String FLOW_TYPE_ZG = "整改"; // 整改

    // 申请事项 - 审查模式
    public final static String SQSX_SCMS_XCJC = "现场检查";
    public final static String SQSX_SCMS_JSSC = "技术审评";
    public final static String SQSX_SCMS_SMSCYJ = "书面审查意见";
    public final static String SQSX_SCMS_SCJCANBJSSC = "现场检查+技术审评";
    public final static String SQSX_SCMS_SCJCANBSMSCYJ = "现场检查+书面审查意见";

    public static String getFlowType(String fusertype){
        if (fusertype.equals(OaSpcyConstant.HCY_USERTYPE_JCY)){ // 检查员
            return OaSpcyConstant.FLOW_TYPE_CY; // 查验
        }else if (fusertype.equals(OaSpcyConstant.FLOW_TYPE_ZG)){
            return OaSpcyConstant.FLOW_TYPE_ZG; // 整改
        }else {
            return OaSpcyConstant.FLOW_TYPE_SP; // 审评
        }
    }

    // 选派记录-选派方式
    public final static String XPFS_SDXZ = "手动指定"; // 选择方式-手动选择
    public final static String XPFS_ZDXZ = "手动随机抽选"; // 选择方式-自动选择
    public final static String XPTJ_XPFS_ZDCX = "自动循环抽选"; // 选择方式-自动选择
    public final static String XPTJ_XPFS_YBMSJ = "预报名随机抽选"; // 选择方式-自动选择

    // 用户-工作状态
    public final static String JCY_ZT_ZG = "在岗"; // 检查员工作状态-在岗
    public final static String JCY_ZY_ZXRWZ = "执行任务中"; // 检查员工作状态-执行任务中
    public final static String JCY_ZY_JP = "解聘"; // 检查员工作状态-解聘

    // 选派记录-是否同意选派
    public final static String XPJL_SFTYXP_WQY = "未确认"; // 选派-未确认
    public final static String XPJL_SFTYXP_YES = "同意"; // 同意选派
    public final static String XPJL_SFTYXP_NO = "不同意"; // 不同意选派
    public final static String XPJL_SFTYXP_WCL = "未处理"; // 未处理选派
    public final static String XPJL_SFTYXP_YCS = "不同意"; // 不同意选派
    public final static String XPJL_SFTYXP_YCS_YY = "已超时未处理"; // 不同意选派

    public final static String XPJL_SMSQRZR_YES = "是"; // 短信确认状态
    public final static String XPJL_SMSZT_YES = "是"; // 发送确认短信状态
    public final static String XPJL_SMSZT_NO = "否"; // 发送确认短信状态


    // 选派记录-考核类型
    public final static String XPJL_KHLX_YJKP = "见习考评";
    public final static String XPJL_KHLX_RCKP = "日常考评";


//    public final static String JCY_STATE_YX = "有效"; // 有效-状态

    public final static String HCY_SSK_ZZK = "组长库"; // 检查员-所属库-组长库

    public final static String HCY_USERTYPE_JCY = "检查员"; // 核查员库-用户类型-检查员

    public final static String HCY_USERTYPE_ZJ = "专家"; // 核查员库-用户类型-专家

    public final static String HCY_USERTYPE_PSY = "评审员"; // 核查员库-用户类型-评审员

    public final static String HCY_SSK_ZZ = "组长"; // 组长

    public final static String HCY_SSK_ZY = "组员"; // 组员

    public final static String HCY_SSK_YB = "预备检查员"; // 预备检查员
    public final static String HCY_SSK_YBK = "预备"; // 预备

    // 根据所属库-获取对应考核类型
    public static String getXpjlKhlxBySsk(String ssk){
        if (StringUtils.isBlank(ssk)){
            return XPJL_KHLX_RCKP;
        }
        if (ssk.equals(HCY_SSK_YB)){
            return XPJL_KHLX_YJKP;
        }else {
            return XPJL_KHLX_RCKP;
        }
    }

    // 获取核查员所属库
    public static String getHCYSSkWithSsk(String ssk){
        if (StringUtils.isBlank(ssk)){
            return OaSpcyConstant.HCY_SSK_ZY;
        }
        if (ssk.contains(OaSpcyConstant.HCY_SSK_ZZ)){
            return OaSpcyConstant.HCY_SSK_ZZ;
        }else if (ssk.contains(OaSpcyConstant.HCY_SSK_ZY)) {
            return OaSpcyConstant.HCY_SSK_ZY;
        }else if (ssk.contains(OaSpcyConstant.HCY_SSK_YB)) {
            return OaSpcyConstant.HCY_SSK_YB;
        }else {
            return OaSpcyConstant.HCY_SSK_ZY;
        }
    }

    public final static String HCY_SSK_HCYK = "核查员库"; // 检查员-所属库-核查员

    public final static String HCY_SSK_ZYK = "组员库"; // 检查员-所属库-组员库

    public final static String HCY_SSK_JXK = "预备检查员库"; // 见习检察员库

    public final static String LOGS_SYS_TYPE_XG = "基本信息修改"; // 系统操作日志-类型2

    public final static String LOGS_SYS_TYPE_BC = "保存信息"; // 系统操作日志-类型3

    public final static String LOGS_SYS_TYPE_TJ = "提交信息"; // 系统操作日志-类型4

    public final static String LOGS_SYS_TYPE_SC = "删除信息"; // 系统操作日志-类型5

    public final static String LOGS_SYS_TYPE_XZ = "新增信息"; // 系统操作日志-类型6

    public final static String LOGS_SYS_TYPE_TH = "退回信息"; // 系统操作日志-类型7

    public final static String SMS_STATE_TYPE1 = "成功"; // 短信、邮箱、发送状态-成功

    public final static String SMS_STATE_TYPE2 = "失败"; // 短信-邮箱-发送状态-失败

    public final static String SMS_FLAG = "成功"; // 短信发送成功

    public final static String NUMBER_FIRST = "1"; // 类型序号1

    public final static String LCZT_BLZ = "办理中";

    public final static String LCZT_LCJS = "流程结束";

    public final static String BLZT_DB = "待办"; // 待办

    public final static String BLZT_YB = "已办"; // 已办

    public final static String BLZT_TH = "退回"; // 退回

    public final static String BLLX_BL = "办理";  // 办理类型  办理
    public final static String BLLX_TH = "退回"; // 办理类型  退回
    public final static String BLLX_DB = "待办"; // 办理类型  待办
    public final static String BLLX_ZB = "转办"; // 办理类型  转办

    public final static String BLFS_DRJJ = "多人竞争"; // 多人竞争

    public final static String BLFS_DRBX = "多人并行"; // 多人并行

    public final static String BLFS_DRXX = "多人线性"; // 多人线性

    public final static String SQSX_BASIC_XZSPZT_YES = "政务服务"; // 行政审批状态
    public final static String SQSX_BASIC_XZSPZT_RCJG = "日常监管"; // 行政审批状态



    // 检查项目类型
    public final static String JCXM_TYPE_JCXM = "检查项目";
    public final static String JCXM_TYPE_SPXM = "审评项目";
    public final static String JCXM_ZDXM = "关键项目";
    public final static String JCXM_YBXM = "一般项目";

    /**
     * 药品流通-项目类型
     */
    public final static String YPLT_YBXM = "一般项目";
    public final static String YPLT_YBZDXM = "一般重点项目";
    public final static String YPLT_ZDXM = "重点项目";

    /**
     * 药品注册-项目类型
     */
    public final static String YPZC_YBXM = "一般项目";
    public final static String YPZC_YBZDXM = "一般重点项目";
    public final static String YPZC_ZDXM = "重点项目";

    /** 药品注册现场检查项目大类区分 */
    public final static String YPZC_XCJC_JCXM_DLQF_ZC = "药品注册现场检查项目大类区分(注册)";
    public final static String YPZC_ZC = "注册";
    public final static String YPZC_XCJC_JCXM_DLQF_LC = "药品注册现场检查项目大类区分(临床)";
    public final static String YPZC_LC = "临床";

    // 日常考核
    public final static String KHLX_RCKH = "日常考核";
    public final static String KHLX_NDKH = "年度考核";
    public final static String KHLX_PQKH = "聘期考核";

    // 业务分类
    public final static String YWFL_CODE_YPSC = "001002"; // 药品生产
    public final static String YWFL_NAME_YPSC = "药品生产";

    public final static String YWFL_CODE_YPZC = "001001"; // 药品注册
    public final static String YWFL_CODE_YPZCLC = "001001002"; // 药品注册-临床
    public final static String YWFL_NAME_YPZC = "药品注册";

    public final static String YWFL_CODE_YPJY = "001003"; // 药品经营
    public final static String YWFL_NAME_YPJY = "药品经营";
    public final static String YWFL_NAME_YPLT = "药品流通"; // 药品流通

    public final static String YWFL_CODE_YLQX = "002";  // 医疗器械
    public final static String YWFL_NAME_YLQX = "医疗器械";


    public final static String YWFL_CODE_HZP = "003"; // 化妆品
    public final static String YWFL_NAME_HZP = "化妆品";


    // 岗位-质量体系文件负责人
    public final static String GW_ZLTXWJ_FZR = "质量体系文件负责人";
    public final static String GW_HFRW_FZR = "回访任务负责人";
    public final static String DA_BGS_FZR = "档案负责人";

    // 质量负责人
    public final static String GW_ZLFZR = "质量负责人"; // 质量负责人

    // 中心领导
    public final static String GW_ZXLD = "中心领导";

    // 工作单位变更审核人
    public final static String GW_DWBGSHR = "单位变更审核人";
    // 退休延聘申请审核人
    public final static String GW_TXYPSQSHR = "退休延聘审核人";
    // 解聘申请审核人
    public final static String GW_JPSQSHR = "解聘申请审核人";

    // 管理者代表姓名
    public final static String GLZDB_NAME = "蒋明廉";

    // 流程名称
    public final static String RCKP_FLOW_NAME = "日常考评流程";
    public final static String NDKP_FLOW_NAME = "年度考评流程";

    // 业务分类编码 - 获取对应的部门处室
    public static String getOrgNameInCsByYwflcode(String fywflcode){
        if (StringUtils.isBlank(fywflcode)){
            return "";
        }

        if (fywflcode.equals(YWFL_CODE_YPZC)){
            return "行政审批与注册管理处(中药民族药监管处)";

        }else if (fywflcode.equals(YWFL_CODE_YPZCLC)){
            return "行政审批与注册管理处(中药民族药监管处)";

        }else if (fywflcode.equals(YWFL_CODE_YPSC)){
            return "药品生产监管处";

        }else if (fywflcode.equals(YWFL_CODE_YPJY)){
            return "药品流通监管处";

        }else if (fywflcode.equals(YWFL_CODE_YLQX)){
            return "医疗器械监管处";

        }else if (fywflcode.equals(YWFL_CODE_HZP)){
            return "化妆品监管处";
        }

        return "";
    }

    public final static String ORG_NAME_ZXZR = "中心主任";
    public final static String ORG_NAME_ZXZR_CODE = "zxzr";

    public final static String ORG_NAME_ZXFZR = "中心副主任";
    public final static String ORG_NAME_ZXFZR_CODE = "zxzrf";

    public final static String DEPT_NAME_ZHYWK = "质量管理与科研科";
    public final static String DEPT_NAME_ZHYWK_CODE = "zhywk";

    public final static String DEPT_NAME_BGS = "办公室";
    public final static String DEPT_NAME_BGS_CODE = "bgs";

    public static String YPSC_ORG_NAME = "药品生产查验科";
    public static String YPZC_ORG_NAME = "药品注册审评查验科";
    public static String YPLT_ORG_NAME = "药品流通查验科";
    public static String YLQX_ORG_NAME = "医疗器械审评查验科";
    public static String HZP_ORG_NAME = "食品化妆品评审查验科";

    // 按照部门名称获取业务分类
    // （1 查询全部业务分类）
    // （0 都不查询）
    public static String getYwflByDeptName(String deptName){
        if (StringUtils.isBlank(deptName)){
            return "0";
        }

        if (deptName.contains(ORG_NAME_ZXZR)){
            return ORG_NAME_ZXZR_CODE;

        }else if (deptName.contains(ORG_NAME_ZXFZR)){
            return ORG_NAME_ZXFZR_CODE;

        }else if (deptName.contains(DEPT_NAME_BGS)){
            return DEPT_NAME_BGS_CODE;

        }else if (deptName.contains(DEPT_NAME_ZHYWK)){
            return DEPT_NAME_ZHYWK_CODE;

        }else if (deptName.contains(YPZC_ORG_NAME)){

            return YWFL_CODE_YPZC;
        }else if (deptName.contains(YPSC_ORG_NAME)){

            return YWFL_CODE_YPSC;
        }else if (deptName.contains(YPLT_ORG_NAME)){

            return YWFL_CODE_YPJY;
        }else if (deptName.contains(YLQX_ORG_NAME)){

            return YWFL_CODE_YLQX;
        }else if (deptName.contains(HZP_ORG_NAME)){

            return YWFL_CODE_HZP;
        }else {
            return "0";
        }
    }



    // 根据业务分类编码-获取业务分类名称
    public static String getYwclNameByCode(String ywflCode){
        if (StringUtils.isBlank(ywflCode)){
            return YPSC_ORG_NAME;
        }

        /** 001001：药品注册|001002：药品生产|001003：药品经营|002：医疗器械|003：化妆品 */
        if (Objects.equals(ywflCode, YWFL_CODE_YPSC)) {
            return YPSC_ORG_NAME;
        }else if (Objects.equals(ywflCode, YWFL_CODE_YPZC)) {
            return YPZC_ORG_NAME;
        }else if (Objects.equals(ywflCode, YWFL_CODE_YPJY)) {
            return YPLT_ORG_NAME;
        }else if (Objects.equals(ywflCode, YWFL_CODE_YLQX)) {
            return YLQX_ORG_NAME;
        }else if (Objects.equals(ywflCode, YWFL_CODE_HZP)) {
            return HZP_ORG_NAME;
        }else if (Objects.equals(ywflCode, YWFL_CODE_YPZCLC)){
            return YPZC_ORG_NAME;
        }else {
            return YPSC_ORG_NAME;
        }
    }

    // 根据业务分类编码-获取业务分类名称
    public static String getYwclNameByYWMC(String ywmc){
        if (StringUtils.isBlank(ywmc)){
            return "";
        }

        /** 001001：药品注册|001002：药品生产|001003：药品经营|002：医疗器械|003：化妆品 */
        if (Objects.equals(ywmc, YWFL_NAME_YPSC)) {
            return YPSC_ORG_NAME;
        }else if (Objects.equals(ywmc, YWFL_NAME_YPZC)) {
            return YPZC_ORG_NAME;
        }else if (Objects.equals(ywmc, YWFL_NAME_YPLT)) {
            return YPLT_ORG_NAME;
        }else if (Objects.equals(ywmc, YWFL_NAME_YLQX)) {
            return YLQX_ORG_NAME;
        }else if (Objects.equals(ywmc, YWFL_NAME_HZP)) {
            return HZP_ORG_NAME;
        }else {
            return ywmc;
        }
    }

    public final static String Dept_Spcy_Id = "1632951314992041985"; // 审评中心部门 id
    public final static String Dept_Spcy_Name = "审评中心";

    public final static String HCY_ORGID ="1632952047242022914"; // 检查员所属部门ID
    public final static String HCY_ORGNAME ="检查员"; // 检查员部门名称
    public final static String HCY_ORGCODE ="A02A06"; // 检查员部门编码

    public final static String HCY_ZJ_ORGID = "1644221574143426561"; // 专家部门ID
    public final static String HCY_ZJ_ORGNAME = "专家"; // 专家部门名称
    public final static String HCY_ZJ_ORGCODE = "A02A11"; // 专家部门编码

    public final static String QY_ORG_ID = "1679737061933465602";  // 企业部门id
    public final static String QY_ORG_NAME = "企业"; // 企业部门名称
    public final static String QY_ORG_CODE = "A02A12"; // 企业部门编码
    public final static String QY_ROLE_ID = "1679740467637010433"; // 企业角色id (角色名：共享企业管理)

    public final static String JCFJ_ORG_ID = "1688481600840024066";  // 检查分局部门id
    public final static String JCFJ_ORG_NAME = "检查分局"; // 检查分局部门名称
    public final static String JCFJ_ORG_CODE = "A02A13"; //  检查分局部门编码
    public final static String JCFJ_ROLE_ID = "1688481688433868801"; //  检查分局角色id (角色名： 检查分局)

    public final static String HCY_ROLEID_YPSC="1631578566361321474"; // 药品生产核查员角色id

    // 根据业务分类编码-获取对应-核查员的角色id
    public static String getRoleIdByCode(String ywflCode){
        /** 001001：药品注册|001002：药品生产|001003：药品经营（药品流通）|002：医疗器械|003：化妆品 */
        if (Objects.equals(ywflCode, "001002")) {
            return "1631578566361321474";
        }else if (Objects.equals(ywflCode, "001001")) {
            return "1633775167033020417";
        }else if (Objects.equals(ywflCode, "001003")) {
            return "1633775021314510850";
        }else if (Objects.equals(ywflCode, "002")) {
            return "1633775257999085570";
        }else if (Objects.equals(ywflCode, "003")) {
            return "1633775373522800642";
        }else {
            return "";
        }
    }

    // 根据业务分类编码-获取对应-专家的角色id
    public static String getZjRoleIdByCode(String ywflCode){
        /** 001001：药品注册|001002：药品生产|001003：药品经营（药品流通）|002：医疗器械|003：化妆品 */
        if (Objects.equals(ywflCode, "001002")) {
            return "1644224303813246978";
        }else if (Objects.equals(ywflCode, "001001")) {
            return "1644224440845352962";
        }else if (Objects.equals(ywflCode, "001003")) {
            return "1644224375514873858";
        }else if (Objects.equals(ywflCode, "002")) {
            return "1644224484264787969";
        }else if (Objects.equals(ywflCode, "003")) {
            return "1644224537553420290";
        }else {
            return "";
        }
    }



    // 行政审批-数据对接-业务分类【001: 药品注册，002：药品生产，003：药品流通，004：医疗器械，005：化妆品】

    // 行政审批-数据接口对接- 通过行政审批数据的业务分类编码-得到对应审评查验的业务分类编码
    public static String getSpcyYwflcodeByXzspYwfl(String ywfl){

        if (StringUtils.isBlank(ywfl)){
            return OaSpcyConstant.YWFL_CODE_YPSC;
        }

        if (ywfl.equals("001")){
            return OaSpcyConstant.YWFL_CODE_YPZC;
        }else if (ywfl.equals("002")){
            return OaSpcyConstant.YWFL_CODE_YPSC;
        }else if (ywfl.equals("003")){
            return OaSpcyConstant.YWFL_CODE_YPJY;
        }else if (ywfl.equals("004")){
            return OaSpcyConstant.YWFL_CODE_YLQX;
        }else if (ywfl.equals("005")){
            return OaSpcyConstant.YWFL_CODE_HZP;
        }

        return OaSpcyConstant.YWFL_CODE_YPSC;
    }

    // 行政审批-数据接口对接- 通过对应审评查验的业务分类编码-得到行政审批数据的业务分类编码
    public static String getXzspYwflBySpcyYwflcode(String ywflcode){

        if (StringUtils.isBlank(ywflcode)){
            return "";
        }

        if (ywflcode.equals(OaSpcyConstant.YWFL_CODE_YPZC)){
            return "001";
        }else if (ywflcode.equals(OaSpcyConstant.YWFL_CODE_YPSC)){
            return "002";
        }else if (ywflcode.equals(OaSpcyConstant.YWFL_CODE_YPJY)){
            return "003";
        }else if (ywflcode.equals(OaSpcyConstant.YWFL_CODE_YLQX)){
            return "004";
        }else if (ywflcode.equals(OaSpcyConstant.YWFL_CODE_HZP)){
            return "005";
        }

        return "";
    }

    // 获取检查项目-默认值
    public static String getJcxmDefaultScjl(String ywflCode){
        if (ywflCode.equals(YWFL_CODE_YPSC)){
            return OaSpcyConstant.REVIEW_RECORD_CONCLUSION_WQX;

        }else if (ywflCode.equals(YWFL_CODE_YPZC)){
            return OaSpcyConstant.REVIEW_RECORD_CONCLUSION_FH;

        }else if (ywflCode.equals(YWFL_CODE_YPJY)){
            return OaSpcyConstant.REVIEW_RECORD_CONCLUSION_WQX;

        }else if (ywflCode.equals(YWFL_CODE_YLQX)){
            return OaSpcyConstant.REVIEW_RECORD_CONCLUSION_FH;

        }else if (ywflCode.equals(YWFL_CODE_HZP)){
            return OaSpcyConstant.REVIEW_RECORD_CONCLUSION_FHGD;

        }else if (ywflCode.equals(YWFL_CODE_YPZCLC)){
            return OaSpcyConstant.REVIEW_RECORD_CONCLUSION_FH;
        }
        return "";
    }

    // 药品流通 - 事项- 属于 零售企业 / 经营企业 / 批发企业
    public static String getYpltQylxBySxmc(String fsxmc){
        if (StringUtils.isBlank(fsxmc)){
            return "批发企业";
        }
        if (fsxmc.contains("零售")){
            return "零售企业";

        }else if (fsxmc.contains("经营")){
            return "经营企业";

        }else if (fsxmc.contains("批发")){
            return "批发企业";

        }else {
            return "批发企业";
        }

    }

    // 通过阿拉伯数字 ， 获取罗马数字
    public static String getLmszByAlbsz(int index){

        if (index == 1){
            return "一";
        }
        if (index == 2){
            return "二";
        }
        if (index == 3){
            return "三";
        }
        if (index == 4){
            return "四";
        }
        if (index == 5){
            return "五";
        }
        if (index == 6){
            return "六";
        }
        if (index == 7){
            return "七";
        }
        if (index == 8){
            return "八";
        }
        if (index == 9){
            return "九";
        }
        if (index == 10){
            return "十";
        }
        if (index == 11){
            return "十一";
        }
        if (index == 12){
            return "十二";
        }
        if (index == 13){
            return "十三";
        }
        if (index == 14){
            return "十四";
        }
        if (index == 15){
            return "十五";
        }
        if (index == 16){
            return "十六";
        }
        if (index == 17){
            return "十七";
        }
        if (index == 18){
            return "十八";
        }
        if (index == 19){
            return "十九";
        }
        if (index == 20){
            return "二十";
        }

        return "一";
    }

    // 各科室 - 按照条款号 *的数量，判断是那个 一般、一般重点、重点项目
    public static String getJcxmSfzdxm(String fywflcode,int count){

        if (fywflcode.equals(OaSpcyConstant.YWFL_CODE_YPSC)){
            if (count == 0){
                return "一般项目";
            }else if (count == 1){
                return "一般重点项目";
            }else {
                return "重点项目";
            }

        }else if (fywflcode.equals(OaSpcyConstant.YWFL_CODE_YPZC)){
            if (count == 0){
                return "一般项目";
            }else if (count == 1){
                return "一般重点项目";
            }else {
                return "重点项目";
            }

        }else if (fywflcode.equals(OaSpcyConstant.YWFL_CODE_YPJY)){
            if (count == 0){
                return "一般项目";
            }else if (count == 1){
                return "一般重点项目";
            }else {
                return "重点项目";
            }

        }else if (fywflcode.equals(OaSpcyConstant.YWFL_CODE_YLQX)){
            if (count == 0){
                return "一般项目";
            }else if (count == 1){
                return "一般重点项目";
            }else {
                return "重点项目";
            }

        }else if (fywflcode.equals(OaSpcyConstant.YWFL_CODE_HZP)){
            if (count == 0){
                return "一般项目";
            }else if (count == 1){
                return "重点项目";
            }else if (count == 2){
                return "关键项目";
            }
        }

        return "一般项目";
    }

    //行政审批对应的文件类型
    public final static String XZSP_WJLX_QYTJCL = "企业提交材料";
    public final static String XZSP_WJLX_SPCL = "审批材料";
    public final static String XZSP_WJLX_XCJCCL = "现场审查（检查）材料";
    public final static String XZSP_WJLX_JYJCCL = "检验检测材料";
    public final static String XZSP_WJLX_QYZGCL = "企业整改材料";
    public final static String XZSP_WJLX_QYJFCL = "企业缴费材料";

    /**
     * 获取行政审批文件类型名称
     * @param code
     * @return
     */
    public static String getXzspWjlxName(String code){
        if (Objects.equals(code, "0")) {
            return XZSP_WJLX_QYTJCL;
        }else if (Objects.equals(code, "1")) {
            return XZSP_WJLX_SPCL;
        }else if (Objects.equals(code, "2")) {
            return XZSP_WJLX_XCJCCL;
        }else if (Objects.equals(code, "3")) {
            return XZSP_WJLX_JYJCCL;
        }else if (Objects.equals(code, "4")) {
            return XZSP_WJLX_QYZGCL;
        }else if (Objects.equals(code, "5")) {
            return XZSP_WJLX_QYJFCL;
        }else {
            return "";
        }
    }

    public final static String XZSP_TIME_STAMP_ID="111111";
}
